package com.neusoft.neuiotms.dcom.model.incident;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

/**
 * @author WYS
 * @date 2020年8月18日 下午1:30:04
 */
@Getter
@Setter
@Entity
@Table(name = "neuiot_incident_appoint")
@org.hibernate.annotations.Table(appliesTo = "neuiot_incident_appoint", comment = "事件指派人表")
public class IncidentAppoint extends AbstractAuditModel {

    private static final long serialVersionUID = -1146452512217956181L;

    @Length(max = 255, message = "工作流TaskId不能超过{max}位")
    @Column(length = 255, nullable = false)
    @Comment("varchar(255) NOT NULL COMMENT '工作流TaskId'")
    private String taskId;

    @Length(max = 50, message = "工单号不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '工单号'")
    private String workNum;

    @Length(max = 50, message = "指派人编码不能超过{max}位")
    @Column(length = 50, nullable = true)
    @Comment("varchar(50) NOT NULL COMMENT '指派人编码'")
    private String appointUserCode;

    @Length(max = 255, message = "指派人名称不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL COMMENT '指派人名称'")
    private String appointUserName;

    @Length(max = 50, message = "执行人编码不能超过{max}位")
    @Column(length = 50, nullable = true)
    @Comment("varchar(50) NOT NULL COMMENT '执行人编码'")
    private String executeUserCode;

    @Length(max = 255, message = "执行人名称不能超过{max}位")
    @Column(length = 255, nullable = true)
    @Comment("varchar(255) NULL COMMENT '执行人名称'")
    private String executeUserName;

}
